@extends('home.layout.base')
@section('title', '帮助中心')
@section('pluginstyle')
<link rel="stylesheet" href="{{ asset('dist/home/css/helpcenter.css') }}" />
<script>var _isindex = 0;</script> 
@endsection
@section('content')
<div class="con_1240" id="wrapcontent"> 
    <div class="helpNav"> 
        <div class="modL"> 
            <div class="hd">
                <h2>帮助中心</h2>
            </div> 
            <div class="bd"> 
                <div class="helpList"> 
                    @foreach($faqMenu as $faq)
                    <h3><span></span>{{ $faq->cate_name }}</h3> 
                    <ul> 
                        @foreach($faq->faqs as $f)
                        <li> <a href="{{ url('/faq', [$f->id]) }}"> {{ $f->faq_title }} </a> </li>
                        @endforeach
                    </ul>
                    @endforeach
                </div>
            </div>
        </div> 
    </div> 
    <div class="clearfix" style="float:left;padding-bottom:100px;width:1052px"> 
        <div class="helpCon helpCon2"> 
            <div class="hd"> 
                <h1>{{ $data->faq_title }}</h1> 
                <div class="recom">
                    第一时间了解精彩资讯
                    <a href="#">订阅
                        <div class="bn360_ewm"></div>
                    </a>
                </div>
            </div> 
            {!! $data->faq_content !!}
        </div>
    </div>
</div>
@endsection
@section('pluginscript')
<script>
    var updateMenuAct = function() {
        var e = location.pathname + location.hash;
        $(".helpList a").removeClass("act").each(function() {
            var t = $(this);
            t.attr("href") == e && t.addClass("act");
        });
    };
    $(function() {
        updateMenuAct(), $(".helpList a").click(function() {
            setTimeout(updateMenuAct, 50);
        });
    });
 </script>
<script>var hl = $("#wrapcontent .helpNav").outerHeight(), hr = $("#wrapcontent .helpCon").outerHeight(), mh = Math.max(hl, hr)</script>
@endsection